﻿using System.Runtime.Serialization;
using LuxDiner.Model.Members;

namespace LuxDiner.Model.Orders
{
    [DataContract]
    public class DealOrderModel:MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public string OrderNo { get; set; }
        [Model]
        [DataMember]
        public int CustomerID { get; set; }
        [Model]
        [DataMember]
        public System.DateTime NoteDate { get; set; }
        [Model]
        [DataMember]
        public int OperatorUserID { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public System.DateTime CreatedOn { get; set; }
        [Model]
        [DataMember]
        public decimal TotalMoney { get; set; }
        [Model]
        [DataMember]
        public int Method { get; set; }
        [Model]
        [DataMember]
        public string Delivers { get; set; }
        [Model]
        [DataMember]
        public int OrderStatus { get; set; }
        [Model]
        [DataMember]
        public string Description { get; set; }

        #region Help
        [DataMember]
        public DealOrderDetailCollection Items { get; set; }
        [DataMember]
        public CustomerModel Customer { get; set; }
        [DataMember]
        public ProductOrderCollection ProductOrders { get; set; }
        #endregion
    }

    [DataContract]
    public class DealOrderCollection : ModelCollectionBase<DealOrderModel> { }
}
